package com.yixuan.mt.common.utitls;

public class UserContext {

    public static final ThreadLocal<Integer> threadLocal = new ThreadLocal<>();

    public static void setUser(Integer id) {
        threadLocal.set(id);
    }

    public static Integer getUser() {
        return threadLocal.get();
    }

    public static void removeUser() {
        threadLocal.remove();
    }
}